<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/basic/taglibs.jsp" %>

<script type="text/javascript">
    $(function() {
        $("#textshow").find("img").each(function(index){
            if($(this).attr("src").indexOf("http://")<0){
                imgurl = "${imgPath}"+$(this).attr("src");
                $(this).attr("src",imgurl);
            }
        });
        $("#textshow").find("a").each(function(index){
            if($(this).attr("href").indexOf("http://")<0){
                imgurl = "${imgPath}"+$(this).attr("href");
                $(this).attr("href" ,imgurl);
            }
        });
    });

</script>

<div class="textshow" id="textshow">
    <p class="articletitle">${article.title}</p>
    <p class="articleinfo"><span>发布时间： <fmt:formatDate value="${article.createTime}" pattern="yyyy-MM-dd" /></span><span class="mgl65">来源：${article.source}</span><span class="mgl65">编辑：${admin.name}</span></p>
    <p class="articlecontent mgt20">
        ${article.content}
    </p>
</div>
